/**
 * ServerWindowSingleton.java
 * 
 * @author Beatrice Bacelli
 * @author Luca Bedogni
 * @author Silvia Righini
 */
package unibo.lsb.graphic;

/**
 * Singleton for {@link ServerWindow}
 */
public class ServerWindowSingleton {

	private static ServerWindowSingleton ssw;
	private static ServerWindow serverWindow;

	private ServerWindowSingleton() {
		serverWindow = new ServerWindow();
	}

	public static ServerWindow getServerWindow() {
		return serverWindow;
	}

	public static ServerWindowSingleton getInstance() {
		if (ssw == null) {
			ssw = new ServerWindowSingleton();
		}
		return ssw;
	}

}
